#define  _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <math.h>
int main()
{
	int a = 0;
	int c = 0;
	int count = 0;
	scanf("%d",&a);
	c = a;
	while (c)
	{
		c /= 10;
		count++;
	}
	for (int i = 0; i < count; i++)
	{
		printf("%d",a%10);
		a /= 10;
	}
	return 0;
}